import play.*;
import org.springframework.context.support.*;

public class Global extends GlobalSettings{
	private ClassPathXmlApplicationContext ctx;
	
	@Override
	public void onStart (Application app) {
		String configLocation = Play.application().configuration().getString("spring.context.location");
		ctx = new ClassPathXmlApplicationContext(configLocation);
		Logger.info("WEB Badugi START !!!!!!!! marian u byl ");
	}
	
	@Override
	public void onStop(Application app) {
		ctx.close();
		Logger.info("WEB Badugi STOP !!!!!!!!");
	
	}
	
		
}
